<template>
	<view>
		<view class="centre">
			<image src="https://cdn.uviewui.com/uview/template/taobao-order.png" mode=""></image>
			<view class="explain">
				提交成功
				<view class="tips">可以去看看有那些想买的</view>
			</view>
			<view class="bottom">
				<view class="btn" @tap="toOrderList">稍后支付</view>
				<view class="btn" @tap="toPay">立即支付</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				orderId: null
			}
		},
		onLoad(options) {
			console.log(options);
			if(options.id){
				this.orderId = options.id
				// this.getData()
			}
		},
		methods: {
			toOrderList(){
				this.$u.route({
					type:'reLaunch',
					url: 'pages/index/index'
				})
			},
			toPay(){
				this.$u.toast('前往支付，获取支付二维码')
			}
		}
	}
</script>

<style lang="scss" scoped>
.centre {
	text-align: center;
	margin: 200rpx auto;
	font-size: 32rpx;
	image {
		width: 164rpx;
		height: 164rpx;
		border-radius: 50%;
		margin-bottom: 20rpx;
	}
	.tips {
		font-size: 24rpx;
		color: #999999;
		margin-top: 20rpx;
	}
	.bottom{
		display: flex;
		flex-direction: row;
		.btn {
			margin: 80rpx auto;
			width: 200rpx;
			border-radius: 32rpx;
			line-height: 64rpx;
			color: #ffffff;
			font-size: 26rpx;
			background: linear-gradient(270deg, rgba(249, 116, 90, 1) 0%, rgba(255, 158, 1, 1) 100%);
		}
	}
	
}
</style>
